Remove unused unique key

Kimi.Huang 5 years ago
parent
commit
b2d8266a95
2 changed files with 20 additions and 1 deletions
  1. 19 0
      mch/migrations/0044_auto_20190816_1459.py
  2. 1 1
      mch/models.py

+ 19 - 0
mch/migrations/0044_auto_20190816_1459.py

@@ -0,0 +1,19 @@
1
+# -*- coding: utf-8 -*-
2
+# Generated by Django 1.11.22 on 2019-08-16 06:59
3
+from __future__ import unicode_literals
4
+
5
+from django.db import migrations
6
+
7
+
8
+class Migration(migrations.Migration):
9
+
10
+    dependencies = [
11
+        ('mch', '0043_auto_20190813_1936'),
12
+    ]
13
+
14
+    operations = [
15
+        migrations.AlterUniqueTogether(
16
+            name='saleclerkinfo',
17
+            unique_together=set([('brand_id', 'user_id')]),
18
+        ),
19
+    ]

+ 1 - 1
mch/models.py

@@ -401,7 +401,7 @@ class SaleclerkInfo(BaseModelMixin, SexModelMixin):
401 401
         verbose_name = _(u'经销商销售员信息')
402 402
         verbose_name_plural = _(u'经销商销售员信息')
403 403
         unique_together = (
404
-            ('brand_id', 'unionid'),
404
+            # ('brand_id', 'unionid'),
405 405
             ('brand_id', 'user_id'),
406 406
         )
407 407